<%@page import="com.srini.util.Constants"%>
<%@page import="java.util.Calendar"%>
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
	pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<%@page import="com.srini.pojos.LoggedInUser"%>
<%@page import="com.srini.util.AppUtil"%><html lang="en">
<head>
<title>D M S - Deputation Management System</title>

<link rel="stylesheet" href="css/jqtransform.css" type="text/css"
	media="all" />
<link rel="stylesheet" href="css/jquery-ui-1.8.16.custom.css" />
<link rel='stylesheet' type='text/css' href='css/fullcalendar.css' />
<link rel='stylesheet' type='text/css' href='css/fullcalendar.print.css'
	media='print' />
<link rel="stylesheet" href="css/ui.jqgrid.css" type="text/css" media="all" />
	

<link rel="stylesheet" href="css/menu.css" type="text/css" media="all" />
<link rel="stylesheet" href="css/styleSheet.css" type="text/css" media="all" />
<link rel="icon" href="images/Timesheet-icon.png" type="image/x-icon" />  
<link rel="shortcut icon" href="images/Timesheet-icon.png" type="image/x-icon" />

<script type='text/javascript' src='js/jquery.js'></script>
<script type='text/javascript' src='js/menu.js'></script>
<script type='text/javascript' src='js/grid.locale-en.js'></script>
<script type='text/javascript' src='js/jquery.jqGrid.min.js'></script>
<script type="text/javascript" src="js/jquery.jqtransform.js"></script>
<script type='text/javascript' src='js/jquery-ui-1.8.16.custom.min.js'></script>
<script type='text/javascript' src='js/jquery-ui-timepicker-addon.js'></script>
<script type='text/javascript' src='js/fullcalendar.min.js'></script>
<script type="text/javascript" src="app-script/onReady.js"></script>
<script type="text/javascript" src="app-script/notifier.js"></script>
<script type='text/javascript' src='app-script/FCController.js'></script>
<script type="text/javascript" src="app-script/events.js"></script>
<script type="text/javascript" src="app-script/JSUtil.js"></script>

<script language="javascript">

$(document).ready(function() {
        <% String message = (String)request.getAttribute("message");
    	if (message != null) {
    	%>
    	notifierInst.showMessage("<%=message%>");
    	<%}
    	String currentPage = (String) request.getAttribute("currentPage");
    	if (AppUtil.isEmpty(currentPage)) {
    		currentPage= "home";
    	}
       %>
       
		$(".formDiv").hide().css("visibility","visible");
		$(".rightNav").removeClass("loading");
		$('.<%= currentPage %>').show();
		$('.leftNav li a[rel=<%= currentPage%>]').addClass('active');
	});

</script>
<%
LoggedInUser user = (LoggedInUser) session.getAttribute(Constants.LOGGEDIN_USER);
String userName = user.getUserInfo().getDisplayName();
String role = user.getRole().getRole();
if (AppUtil.isEmpty(userName))
	userName = user.getUserInfo().getFirstName();
if (AppUtil.isEmpty(userName)) {
	userName = user.getUserName();
}
	
%>
</head>
<body>

<div id="wrapper">
<div class="header">
	<!--Logo-->
	<div class="logo"><div class="hdrTxt">DMS</div><div class="caption">Office away from Office!!</div></div>
	<!--End Logo-->
	<!--Menu Nav--> 
		<div id="menu">
			<ul>
				<li class="current"><a href="login">Home</a></li>
				<li class="fade"><a href="#" style="opacity: 0.5;">Reports</a>
					<ul style="visibility: visible; left: -36px; display: none;">
						<li><a style="text-align: center; font-size: 16px; font-weight: bold; border-bottom: 1px solid red">Reports</a></li>
						<li class="menuItem"><a class="fade" href="#" rel="timesheet" style="opacity: 0.5; text-align: center;">Timesheet</a></li>
						<li class="menuItem"><a class="fade" href="#" rel="reimbursement" style="opacity: 0.5; text-align: center;">Reimbursement</a></li>
					</ul>                    
				</li>
				<!-- <li><a class="fade" href="#" style="opacity: 0.5;">Medical Exempt</a></li>-->
				<li><a class="fade" href="#" style="opacity: 0.5;">Leave Calendar</a>
					<ul style="visibility: visible; left: -36px; display: none;">
						<li><a style="text-align: center; font-size: 16px; font-weight: bold; border-bottom: 1px solid red">Leave Calendar</a></li>
						<li class="menuItem"><a class="fade" href="#" rel="leavepage" style="opacity: 0.5; text-align: center;">Leave Application</a></li>
						<li class="menuItem"><a class="fade" href="#" rel="reimbursement" style="opacity: 0.5; text-align: center;">Transactions</a></li>
					</ul>
				</li>
				<li><a class="fade" href="contact.html" style="opacity: 0.5;">Holiday's List</a></li>
				<li class="fade"><a style="opacity: 0.5;" href="#">Activities</a>
					<ul style="visibility: visible; left: -16.5px; top: 0px; display: none;">
						<li><a style="text-align: center; font-size: 16px; font-weight: bold; border-bottom: 1px solid red">Activities</a></li>
						<li class="menuItem"><a class="fade" href="#" rel="manageract" style="opacity: 0.5; text-align: center;">Manager Activities</a></li>
						<li class="menuItem"><a style="opacity: 0.5; text-align: center;" href="index_2.html" class="fade">Admin Activities</a></li>
						<li class="menuItem"><a style="opacity: 0.5; text-align: center;" href="#" rel="compset" class="fade">Database Activities</a></li>
					</ul>                    
				</li>
			</ul>
		</div>  
    <!--End Main Nav--> 
</div>
<div class="content">
<div class="rightNav loading">
						<%@ include file="pages/homepage.jsp" %>
						<%@ include file="pages/timesheet.jsp" %>
						<%@ include file="pages/reimbursement.jsp" %>
						<%@ include file="pages/manageracts.jsp" %>
						<%@ include file="pages/leavemgmt.jsp" %>
	
</div>
</div></div>
<div class="footer">No Rights Reserved</div>
</body>
</html>